package com.wd.tw.handler;


import com.alibaba.fastjson2.JSONObject;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.wd.tw.domain.dto.request.QueryData;
import com.wd.tw.domain.dto.request.SubscribeRequest;
import com.wd.tw.domain.dto.response.SocketEventResponse;

/**
 * @className: Test
 * @description: TODO 类描述
 * @author: liumingkun
 * @date: 2024/11/21
 **/
public class Test {

    public static void main(String[] args) throws Exception {
//        String json = "{\"basic\":{\"ver\":\"1.0\",\"code\":200,\"msg\":\"success\",\"time\":1732107132},\"data\":{\"event_detect\":{\"channel_id\":1,\"channel_name\":\"测试\",\"detect_time\":1732107132601000,\"scene_pic\":\"0,116704\",\"detect_list\":[{\"detect_pic\":\"116704,10256\",\"event_info\":{\"event_type\":\"region_invade\",\"target_info\":{\"target_type\":\"ped\",\"target_id\":142606666,\"quality_score\":0,\"target_rect\":{\"x\":1097,\"y\":226,\"width\":215,\"height\":215},\"attribute\":{\"common_attribute\":[]}},\"event_status\":\"event_trigger\",\"event_rule\":{\"region_event_detect\":[{\"id\":0,\"region_coordinate\":{\"point\":[{\"x\":655,\"y\":219},{\"x\":630,\"y\":933},{\"x\":1447,\"y\":958},{\"x\":1432,\"y\":231},{\"x\":658,\"y\":216}]}}]}}}]}}}";
//
//        ObjectMapper objectMapper = new ObjectMapper();
//        SocketEventResponse response = objectMapper.readValue(json, SocketEventResponse.class);
//
//        response.getData().getEvent_detect().getDetect_list()
//
//        System.out.println(response);
    }
}
